//
//  SSSRecordOrderToPayAlertWindowCustomView.m
//  SSSMerchant
//
//  Created by 谢曦 on 2017/3/25.
//  Copyright © 2017年 xnxin. All rights reserved.
//

#import "SSSRecordOrderToPayAlertWindowCustomView.h"
@interface SSSRecordOrderToPayAlertWindowCustomView()
@property (weak, nonatomic) IBOutlet UIButton *onlineBtn;
@property (weak, nonatomic) IBOutlet UIButton *downlineBtn;
@end
@implementation SSSRecordOrderToPayAlertWindowCustomView

-(void)awakeFromNib{
    [super awakeFromNib];
    _payType=0;//默认为线上支付
    _onlineBtn.selected=YES;
}

- (IBAction)ButtonClick:(UIButton *)button {
    button.selected=YES;
    if(button.tag==100){
        _downlineBtn.selected=NO;
        _payType=0;
    }
    
    if(button.tag==101){
        _payType=1;
         _onlineBtn.selected=NO;
    }

    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
